{% extends "base.html" %}

{% block title %}Create an Event{% endblock %}
{% block url %}http://localhost{%url 'events:create' %}{% endblock %}

{% block content %}
<h1>Create an Event</h1>

<form action="{%url 'events:do_create' %}" method="post">
{% csrf_token %}
<label for="text">Event Name</label><input type="text" name="name" required="required"><br/>
<label for="dates">Start Time</label><input type="datetime-local" name="start_time" required="required"><br/>
<label for="dates">End Time</label><input type="datetime-local" name="end_time" required="required"><br/>
<label for="location">Where</label><input type="text" name="location"><br/>
<label for="details">Description</label><textarea name="description"></textarea><br/>
<input type="submit" value="Submit">
</form>

{% endblock %}
